package com.ncloud.system.service;

import com.ncloud.system.entity.Menu;
import com.ncloud.system.entity.Role;
import com.ncloud.system.entity.RoleMenu;

import java.util.List;

/**
 * Created by shiqiang on 2017/7/28.
 */
public interface RoleService {
    Long insertRole(Role role);
    int updateRole(Role role);
    Role getOneRole(Long roleId);
    int deleteRole(Long roleId);
    List<Role> getRolesByCompanyId(Long companyId);
    /*角色菜单关系*/
    int insertRoleMenu(RoleMenu roleMenu);

    int deleteRoleMenu(Long roleId);
    List<Menu> getMenusByRole(Long roleId);

    List<Role> getRolesByAll();
    List<Role> getRoleByDepart(Long departId, Long companyId);

    int deleteRoleState(Long roleId);
    int deleteRoleMenuState(Long roleId);
}
